ifneq ($(KERNELRELEASE),)
obj-m:=leds_write.o
leds_write-objs:=led_write_misc.o

else

#KDIR:=/lib/modules/`uname -r`/kernel
KDIR:=/home/supanyang/u-boot/linux-3.0.85
all:
    make -C $(KDIR) M=$(shell pwd) modules
clean:
    make -C $(KDIR) M=$(shell pwd) clean
    
endif